//comp css

.thumb-container-x {
  display: flex;
  flex-wrap: wrap;
  float: left;
}

.thumb-container-x .thumb-item-txt {
  margin-top: 3px;
  margin-bottom: 3px;
  font-size: 11px;
  overflow: hidden;
  text-overflow:ellipsis;
  white-space: nowrap;
}

.thumb-container-x .thumb-item-img {
  margin-top: 3px;
  margin-bottom: 3px;

  img {
    width: 45px;
    height: 45px;
  }
}

.thumb-container-x .thumb-item, .thumb-item-add {
  border: 1px dashed #d9d9d9;
  border-radius: 3px;
  transition: all .1s;
  color: #666666;
  margin-right: 1em;
  margin-bottom: 1em;
  width: 160px;
  height: 160px;
  cursor: pointer;
  font-size: 12px;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 1.3;
  flex-direction: column;
}

.thumb-item {
  .control {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    background-color: rgba(0, 0, 0, .3);
    transition: all .3s;
    transition-delay: .1s;

    .del {
      background: #f4516c;
      color: white;
      position: absolute;
      display: inline-block;
      width: 1.7em;
      height: 1.5em;
      top: 0;
      right: 0;
      opacity: 0;
      border-radius: 0 0 0 1.4em;
      transition: all .1s;

      &::before {
        font-size: 1.4em;
        position: absolute;
        right: -1px;
        transform: scale(0.7);
      }

      &:hover {
        transform: translate(-0.5em, .4em) scale(1.5);
      }

    }

    .preview {
      color: white;
      font-size: 2em;
      transition: all .2s;

      &:hover {
        transform: scale(1.2);
      }
    }

    .control-bottom {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      color: white;
      background-color: rgba(0, 0, 0, .3);
      font-size: 1.5em;
      display: flex;
      justify-content: space-around;
      transform: translate(0, 100%);
      transition: all .2s;
      transition-delay: .1s;
      padding: 5px 0;

      .control-bottom-btn {
        transform: all .2s;

        &.disabled {
          color: #ababab;
          cursor: not-allowed;
        }

        &:not(.disabled):hover {
          transform: scale(1.2);
        }
      }
    }
  }

  &:hover {
    .control {
      opacity: 1;
    }

    .del {
      opacity: 1;
    }

    .control-bottom {
      transform: translate(0, 0);
    }
  }
}
